define(["module", "../Tile", "react"], function (module, Tile, React) {
    "use strict";

    var InitPage = React.createClass({
        displayName: "InitPage",
        componentDidMount: function componentDidMount() {

            var map = new OpenLayers.Map({
                div: "map",
                layers: [new OpenLayers.Layer.OSM()],
                center: new OpenLayers.LonLat(116, 41).transform("EPSG:4326", "EPSG:900913"),
                zoom: 4
            });
        },
        render: function render() {
            return React.createElement(
                "div",
                { className: "container" },
                React.createElement(
                    Tile,
                    { header: "初始化" },
                    React.createElement("div", { id: "map", style: { height: "500px" } })
                )
            );
        }
    });

    module.exports = InitPage;
});
